package com.android.asset;
import java.io.IOException;
import java.io.InputStream;

import org.apache.http.util.EncodingUtils;

import android.app.Activity;
import android.util.Log;


public class AssetsManage extends Activity {
	private final String TAG = "message";
	public String loadAssetTxt(){
		String res = "";
		InputStream in;
		try {
			in = getResources().getAssets().open("citycode.txt");
			int length = in.available(); 
			byte[] buffer = new byte[length]; 
			in.read(buffer); 
			res = EncodingUtils.getString(buffer, "UTF-8");
			Log.i(TAG, res);
		} catch (IOException e) {
			e.printStackTrace();
		} 
		return null;
	}

}
